deconvolve Function

public pure function deconvolve(x, y, method) result(rst)

Computes the frequency-domain deconvolution of a signal and kernel.

The result uses the same output selection as convolve. Full deconvolution returns N + M - 1 samples; central deconvolution returns the central portion with the length of the longer input.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: x(:)

The signal to deconvolve.

real(kind=real64), intent(in) :: y(:)

The kernel to remove from the signal.

integer(kind=int32), intent(in), optional :: method

SPCTRM_FULL_CONVOLUTION (default) or SPCTRM_CENTRAL_CONVOLUTION.

Return Value real(kind=real64), allocatable, (:)

The deconvolved result.